{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}


{include file="$tpl_dir./header-page.tpl"}

{include file="$tpl_dir./modules/homefeatured/homefeatured.tpl"}

{include file="$tpl_dir./menu.tpl"}


{include file="$tpl_dir./modules/blockmanufacturer/blockmanufacturer.tpl"}
{include file="$tpl_dir./modules/blockcategories/blockcategories.tpl"}



<!--<div id="jqm_sitemap_bottom_block" class="block">
  <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="{$ps_mobile_styles.PS_MOBILE_THEME_LIST_HEADERS}">
    <li data-role="list-divider">{l s='Site map'}</li>
    {if isset($logged) && $logged}
    <li><a data-ajax="false" href="{$link->getPageLink('my-account.php', true)}">{l s='My Account'}</a></li>
    <li><a data-ajax="false" href="{$base_dir}?mylogout">{l s='Logout'}</a></li>
    {else}
    <li><a data-ajax="false" href="{$link->getPageLink('authentication.php', true)}">{l s='Login / Register'}</a></li>
    {/if}
	<li><a href="{$link->getPageLink('sitemap.php', true)}">{l s='Sitemap'}</a></li>
  </ul>
</div> -->


<div id="featured-products_block_center">
	<h4>{l s='Featured products' mod='homefeatured'}</h4>
	{if isset($homeProducts) AND $homeProducts}
	<div class="block_content">
		<ul>
			{foreach from=$homeProducts item=product name=homeFeaturedProducts}
			<li class="ajax_block_product">
				<a class="product_image" href="{$product.link}" title="{$product.manufacturer_name_lang|escape:'htmlall':'UTF-8'} - {$product.name|escape:html:'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.manufacturer_name_lang|escape:'htmlall':'UTF-8'} - {$product.name|escape:html:'UTF-8'}" /></a>
				<div class="product_info">
					<h5><a class="product_link" href="{$link->getManufacturerLink($product.id_manufacturer, $product.manufacturer_link_rewrite)}" title="{$product.manufacturer_name_lang|escape:'htmlall':'UTF-8'}">{$product.manufacturer_name_lang|escape:'htmlall':'UTF-8'}</a></h5>
					<div class="product_desc"><a class="product_descr" href="{$product.link}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></div>
					<div class="extrea_special">
						<span class="price-discount">{if !$priceDisplay AND ($product.price < $product.price_without_reduction)}{displayWtPrice p=$product.price_without_reduction}{elseif $product.price_tax_exc < $priceWithoutReduction_tax_excl}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if}</span>
						<span class="price">{if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{/if}</span>
					</div>
					{if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
						{if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2}
						<a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&amp;id_product={$product.id_product}&amp;token={$static_token}&amp;add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>
						{else}
						<span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>
						{/if}
					{/if}
				</div>
			</li>
			{/foreach}
		</ul>
	</div>
	{else}
	<p>{l s='No featured products' mod='homefeatured'}</p>
	{/if}
</div>

{include file="$tpl_dir./footer-page.tpl"}